package com.vue.vuedemo.map;

import com.vue.vuedemo.pojo.Images;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ImgaesMapper {
    @Select("select * from images")
    public List<Images> getAllImages();

    @Select("select * from images where cid=#{id}")
    public List<Images> getImagesByCid(Integer id);

    @Select("select * from images where id=#{id}")
    public Images getImagesById(Integer id);
}
